package com.villaday.idf.util;


import com.villaday.idf.AppContext;
import com.villaday.idf.R;
import com.villaday.idf.model.H;

/**
 * 常量
 */
public interface Constant {


    interface URL {

         //本地服务器地址
/*         String BaseUrl = "http://idf.villago.cn/v2/";
         String BaseImg = "http://idf.villago.cn/v2";
         String BaseH5 = "http://idf.villago.cn/v2";*/
        //线上
        String BaseUrl = "https://idf.villaday.com/v2/";
        String BaseImg = "https://idf.villaday.com/v2";
        String BaseH5 = "https://idf.villaday.com/v2";
        String DefaultHeadImg = "res:///" + R.drawable.ic_launcher;

        String WeChatToken = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=" + ID.WeChat_APP_ID +
                "&secret=" + ID.WeChat_APP_Secret + "&code=%s&grant_type=authorization_code";
        String WeChatInfo = "https://api.weixin.qq.com/sns/userinfo?access_token=%s&openid=%s";

        String GoogleMap = "http://ditu.google.cn/maps?f=d&source=s_d&saddr=%s,%s&daddr=%s,%s&hl=zh";
        String BaiduMapApp = "intent://map/direction?origin=latlng:%s|name:%s&destination=latlng:%s|name:%s" +
                "&mode=driving&src=Autohome|GasStation#Intent;scheme=bdapp;package=com.baidu.BaiduMap;end";
        String BaiduMapUrl = "http://api.map.baidu.com/direction?origin=latlng:%s|name:%s&destination=latlng:%s|name:%s"
                + "&mode=driving&region=%s&output=html&src=%s";
        String MapTrans = "http://api.map.baidu.com/ag/coord/convert?from=%d&to=%d&x=%s&y=%s";


        String GetAppVersion = BaseUrl + "GetAppVersion";

        String GetMobileCode = BaseUrl + "GetMobileCode";
        String GetAreaList = BaseUrl + "GetAreaList";
        String GetPopularCitys = BaseUrl + "GetPopularCitys";

        String guides = BaseUrl + "guides";
        //发送验证码
        String sms = BaseUrl + "sms";
        String login = BaseUrl + "login";

        String presell = BaseUrl + "presell/list";


        String refresh_token = BaseUrl + "refresh_token";
        //用户升级
        String member_upgrade = BaseUrl + "vips/member_upgrade";
        //修改用户信息
        String members = BaseUrl + "members";
        //会员提款申请
        String draw_cash = BaseUrl + "vips/draw_cash";

        //会员收益统计
        String member_profits = BaseUrl + "vips/member_profits";
        //反馈
        String feedback = BaseUrl + "feedback";
        String presell_detail = BaseUrl + "presell/detail/";
        String presell_material = BaseUrl + "presell/%s/material/list";
        //        GET 开发完成 /hotel/{hotelId}/material/list 酒店素材列表
        String hotel_material = BaseUrl + "hotel/%s/material/list";

        String house_material = BaseUrl + "house/%s/material/list";
        /*
                String material_posters = BaseUrl + "vips/material/%s/posters";
        */ String material_posters = BaseUrl + "material/%s/posters";
        String adverts = BaseUrl + "adverts/";

        String upgrade = BaseUrl + "upgrade";
        String behaviors = BaseUrl + "member/behaviors";
        //POST 开发完成 /orders 创建订单
        String orders = BaseUrl + "orders";
        //订单详情
        String order = BaseUrl + "order";
        //分享
        String config = BaseUrl + "config";
        //发现
        String recommend = BaseUrl + "topic/recommend/list";
        //发现详情
        String topic = BaseUrl + "topic/";

        //相似推荐
        String similar_list = BaseUrl + "house/%s/similar_list";
        //查询房源详情
        String houses = BaseUrl + "houses/";
        //查询房态
        String houses_states = BaseUrl + "houses/%s/states";

        //动态列表
        String material_recommend = BaseUrl + "material/recommend/list";

        //预生成订单
        String orders_prepare = BaseUrl + "orders/prepare";
        String vips_member_actions = BaseUrl + "vips/member_actions";
        //会员转发订单列表
        String vips_member_orders = BaseUrl + "vips/member_orders";
        //SVIP下级业绩表
        String member_achievements = BaseUrl + "vips/member_achievements";
        //获取分组列表
        String vips_groups = BaseUrl + "vips/groups";

        String vip_members = BaseUrl + "vips/vip_members";
        //查询所有VIP下级及所属分组
        String all_vip_members = BaseUrl + "vips/all_vip_members";

        //修改、添加分组名称、佣金，添加成员
        String save_group = BaseUrl + "vips/save_group";

        //删除组
        String remove_group = BaseUrl + "vips/remove_group";

        //移除分组用户
        String remove_group_members = BaseUrl + "vips/remove_group_members";
        //SVIP设置默认佣金比例
        String default_broken = BaseUrl + "vips/default_broken";

        //查询会员下级用户列表
        String vips_members = BaseUrl + "vips/members";

        String pay = "https://pay.villaday.com/gateway/payment";
        //月/周统计
        String stat_profits = BaseUrl + "vips/stat_profits";
        //房源畅销榜
        String selling = BaseUrl + "vips/houses/selling";
        //取消/删除订单
        String gateway_orders = BaseUrl + "gateway/orders";

        //当前定位城市
        String locations_cities = BaseUrl + "locations/cities";


        //查询城市小区
        String cities_villages = BaseUrl + "cities/%s/villages";

        //获取城市区域
        String cities_areas = BaseUrl + "cities/%s/areas";

        //查询小区详情
        String villages = BaseUrl + "villages/%s";

        // 查询房源列表  目的地
        String houses_list = BaseUrl + "houses";
        // 查询房源搜索条件 目的地
        String houses_filters = BaseUrl + "houses/filters";

        // 查询周边城市
        String surrounds_cities = BaseUrl + "surrounds/%s/cities";

        // 查询所有城市
        String resources_cities = BaseUrl + "resources/cities";

        // 热门城市推荐
        String recommends_cities = BaseUrl + "recommends/cities";
        // 搜索 索引页
        String search_filters = BaseUrl + "search/%s/filters";

        // 查询搜索框检索信息
        String resources_filters = BaseUrl + "resources/filters";


        // 查询小区评论
        String villages_comments = BaseUrl + "villages/%s/comments";

        // 小区会员海报
        String vips_villages_posters = BaseUrl + "vips/villages/%s/posters";

        // 收藏/取消收藏(素材
        String member_collect = BaseUrl + "member/collect/%s/%s";

        // 喜欢/取消喜欢(房源,特卖
        String member_favor = BaseUrl + "member/favor/%s/%s";

        // 个人喜欢列表
        String member_favor_list = BaseUrl + "member/favor/list";

        // 用户消息分类
        String member_message_types = BaseUrl + "member/message/types";
        // 分类展示消息列表
        String member_messag = BaseUrl + "member/%s/messages";

        // GET 开发完成 /member/message/all/read 一键已读所有消息
        String member_message_all_read = BaseUrl + "member/message/all/read";

        // 消息阅读更新
        String member_message_read = BaseUrl + "member/message/%s/read";

        // 个人收藏列表
        String member_collect_list = BaseUrl + "member/collect/list";

        String vips_invite_rule = BaseUrl + "vips/invite/rule";

        //邀请分享内容
        String vips_invite_share = BaseUrl + "vips/invite/share";

        // 特卖详情推荐列表GET 开发完成 /preSales/{presellId}/recommended 特卖详情推荐列表  新版
        String presell_recommend_list = BaseUrl + "preSales/%s/recommended";
        // 普通用户VIP页面
        String vips_normal = BaseUrl + "vips/normal";

        // 邀请下载页详情
        String vips_download_detail = BaseUrl + "vips/invite/download/detail";

        // 邀请下载页分享内容
        String vips_download_share = BaseUrl + "vips/invite/download/share";
        //  邀请好友页(礼包邀请)详情
        String vips_invite_detail = BaseUrl + "vips/invite/gifts/detail";

        //  Vip邀请好友页(礼包分享)分享内容
        String vips_invite_gifts_share = BaseUrl + "vips/invite/gifts/share";

        //邀请按钮文案
        String vips_invite_buttons = BaseUrl + "vips/invite/buttons";
        // 邀请好友页(免费邀请)详情
        String vips_invite_free_detail = BaseUrl + "vips/invite/free/detail";
        //SVIP分享裂变收益设置
        String save_fission = BaseUrl + "vips/save_fission";
        //VIP/SVIP权益
        String equity = BaseUrl + "vips/equity";

        //GET 开发完成 /material/{materialId}/posters 获取会员素材产品海报
        String material_ = BaseUrl + "material/%s/posters";


        //二期
        // 首页配置  首页head数据
        String home_configurations = BaseUrl + "modules/home/configurations";
        //首页 GET 开发完成 /hot_houses 查询热门房源
        String hot_houses = BaseUrl + "hot_houses";

        //GET 开发完成 /presell/list 查询特卖列表 超值特卖
        String presell_list = BaseUrl + "presell/list";

        //GET 开发完成 /search?type=3 搜索特卖
        String search_type = BaseUrl + "search";

        //找房源配置
        String modules_find_house_configurations = BaseUrl + "modules/find_house/configurations";


        //GET 开发完成 /business_districts 查询区域信息
        String business_districts = BaseUrl + "business_districts";


        //material/tag/list 素材标签列表
        String material_tag_list = BaseUrl + "material/tag/list";


        //modules/search/configurations 搜索配置
        String modules_search_configurations = BaseUrl + "modules/search/configurations";


        //GET /search?type=2 别墅搜索
        String BieShuSearch = BaseUrl + "search";


        ///shippingAddresses 查询地址
        String shippingAddresses = BaseUrl + "shippingAddresses";

        //districts 查询行政区
        String districts = BaseUrl + "districts";

        ///global/configurations 全局配置
        String global_configurations = BaseUrl + "global/configurations";

        //商户/店铺模块
        String merchant_share = BaseUrl + "merchant/share";


        ///        GET 开发完成 /modules/search_result/configurations 搜索结果配置
        String modules_search_result_configurations = BaseUrl + "modules/search_result/configurations";


        /*String BaiduMapUrl = "http://api.map.baidu.com/direction?origin=latlng:%s|name:%s&destination=latlng:%s|name:%s"
                + "&mode=driving&region=%s&output=html&src=%s";*/


        String MapDiTu = "http://api.map.baidu.com/direction?origin=latlng:" + AppContext.latitude + "," + AppContext.longitude + "|name:我家&destination=latlng:%s,%s|name:%s&mode=driving&region=latlng:%s&output=html&src=webapp.baidu.com.villaday.idf";


        //三期 GET 开发完成 /modules/member/configurations 会员中心配置
        String modules_member_configurations = BaseUrl + "modules/member/configurations";

        //        GET 开发完成 /hotels/guides 酒店引导页
        String hotels_guides = BaseUrl + "hotels/guides";

        //       GET 开发完成 /preSales/{presellId}/states 预售房态
        String preSales_states = BaseUrl + "preSales/%s/states";

        //       GET 开发中 /vips/brokerage/records 余额明细
        String vips_brokerage_records = BaseUrl + "vips/brokerage/records";
        //               GET 开发完成 /customerServiceStaff 客服信息
        String customerServiceStaff = BaseUrl + "customerServiceStaff";

        //              POST 开发完成 /member/messages 用户留言
        String messages = BaseUrl + "member/messages";


        //三期
        //GET 开发中 /hotels 查询酒店列表
        String hotels = BaseUrl + "hotels";

        //GET 开发完成 /hotel/business_districts 查询酒店区域信息
        String hotel_business_districts = BaseUrl + "hotel/business_districts";

        ///modules/find_hotel/configurations 找酒店配置

        String find_hotel_configurations = BaseUrl + "modules/find_hotel/configurations";


        //酒店详情
        String hotelsDetails = BaseUrl + "hotels/";
        //
        String hotelSimilar = BaseUrl + "hotels/%s/similar_list";
        //查询酒店房型列表
        String rooms = BaseUrl + "hotels/%s/rooms";
        //同品牌酒店
        String brandList = BaseUrl + "hotels/%s/brand_list";
        //查询地址
        String getAddresses = BaseUrl + "shippingAddresses";


        /**
         * 订单模块
         */
        //查询常用旅客
        String memberGuest = BaseUrl + "memberGuest";
        String prepare = BaseUrl + "orders/prepare";

        //创建订单 & 得到订单列表
        String createOrders = BaseUrl + "orders";
        //订单详情
        String orderDetails = BaseUrl + "order";
        //取消订单
        String changeDetails = BaseUrl + "gateway/orders";

        //GET 开发完成 /modules/sale/configurations 特卖页配置
        String saleconfigurations = BaseUrl + "modules/sale/configurations";


        String configurations = BaseUrl + "modules/material/configurations";


        /**
         * 批量转发
         */

        String batch_list = BaseUrl + "material/batch_list";

        String batchs = BaseUrl + "material/batchs";
        //批量转发素材生成海报
        String batchsPoster = BaseUrl + "/material/batchs/poster";


        //        product/{type}/{id}/posters 产品详情分享转发功能接口
        String all_posters = BaseUrl + "product/%s/%s/posters";


        //活动（试睡）
        String newest = BaseUrl + "free_sleep/newest";
        String poster = BaseUrl + "free_sleep/poster";

        //add_brokerage/newest 加返活动详情
        String add_brokerage_newest = BaseUrl + "add_brokerage/newest";
        //GET 开发中 /add_brokerage/{activityId}/boosters 加返激活记录列表
        String add_brokerage_boosters = BaseUrl + "add_brokerage/%s/boosters";
        //GET 开发中 /add_brokerage/poster 加返活动获取海报
        String add_brokerage_poster = BaseUrl + "add_brokerage/poster";

        //供应商模块

        //供应商订单列表
        String hashOrders = BaseUrl + "suppliers/%s/orders";
        //供应商房源列表
        String hashHouses = BaseUrl + "suppliers/%s/houses";
        //供应商房态日历&供应商房态操作
        String hashStates = BaseUrl + "suppliers/%s/houses/%s/states";
        //供应商房价查询&供应商房价设置
        String hashPrices = BaseUrl + "suppliers/%s/houses/%s/prices";
        //供应商房源过滤条件
        String hashFilters = BaseUrl + "suppliers/%s/houses/filters";

         //POST 开发中 /orders/invoice 申请/发送发票
         String orders_invoice = BaseUrl + "orders/invoice";

        //供应商基本信息
        String hashInfos = BaseUrl + "suppliers/%s/infos";
        //订单基本信息
        String stateInfos = BaseUrl + "suppliers/%s/business/infos";

        //orders/invoice 发票详情 get请求

        String orders_invoice_detical = BaseUrl + "orders/invoice";

       //configurations 发票弹窗接口 key invoice_notice：开票须知invoice_info: 发票信息

        String faPiaoconfigurations = BaseUrl + "configurations";

        String addressType = BaseUrl + "search";


        //预售列表
        String preSales = BaseUrl + "preSales";
        //预售配置
        String configs = BaseUrl + "preSales/configs";




        //GET /account/balance查询账户金额

        String accountAmount = BaseUrl + "account/amount";

    }

    interface Strings {
        //手机号正则
        String RegexMobile = "^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-8])|(18[0-9])|166|198|199|(147))\\d{8}$";
        //邮箱正则
        String RegexEmail = "\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*";
        //身份证正则
        String RegexIdNum = "^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}(([0-9]|X)|x)$";
        //微信号正则
        String RegexWecaht = "^[a-zA-Z]{1}[-_a-zA-Z0-9]{5,19}$";
        //密码正则
        String RegexPassword = "^[a-zA-Z0-9]{1}[a-zA-Z0-9_-]{5,19}$";


        //匹配正浮点数  ^[1-9]d*.d*|0.d*[1-9]d*|0?.0+|0$　　 //匹配非负浮点数（正浮点数 + 0）
        String RegexFloat = "^(([0-9]+\\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\\.[0-9]+)|([0-9]*[1-9][0-9]*))$";
        //匹配正整数
        String RegexInt = "^\\d+$";

        //权限提醒
        String PermissionFileTips = "本应用保存数据时被系统拒绝，请手动授权。\n" +
                "授权方式：点击设置按钮进入应用设置页面，选择权限(或权限管理)->存储空间\n请选择允许";
        //权限提醒
        String PermissionCameraTips = "本应用未获取到拍照权限，请手动授权。\n" +
                "授权方式：点击设置按钮进入应用设置页面，选择权限(或权限管理)->相机\n请选择允许";

        // " 号错误提示
        String ErrorTips1 = "不可包含 \" 号";
        // \ 号错误提示
        String ErrorTips2 = "不可包含 \\ 号";
        // | 号错误提示
        String ErrorTips3 = "不可包含 | 号";
        // _ 号错误提示
        String ErrorTips4 = "不可包含 _ 号";

        String SUC = "200";

    }


    interface Integers {
        //短信验证码重试秒数
        int CodeRetryTime = 120;
        //操作成功
        int SUC = 200;
        //操作失败
        int FAIL = 300;
        //数据为空
        int NULL = 400;
        //数据异常
        int ABNORMAL = 500;


    }

    interface ID {
        String QQ_APP_ID = "1105927296";
        String WeChat_APP_ID = "wx2e033b1bbbeb6178";
        String WeChat_APP_Secret = "990f72573177b67da6a0a37c639726ce";
        String WeChat_State = "wechat_sdk_crowd";
    }

    interface Code {
        //打开相册请求码
        int AlbumCode = 0x0001;

        int PermissionCode = 0x1001;

        int AddGroup = 0x1002;

        int NickName = 0x1003;

        int OrderCode = 0x1004;


        int OrderNo = 0x1005;
        int Draw_Cash = 0x1006;
        int upgradeVip = 0x1007;
        int AddGroupMember = 0x1008;
        int Rabit = 0x1009;

        int SvipCode = 0x1010;
        int CommissionAddMember = 0x1011;

        int CommissionAddGroup = 0x1012;

        int FissionRedEnvelope = 0x1013;

        int phoneCode = 0x1014;


        int commonAddCode = 0x1014;
        int addressAddCode = 0x1015;
        int notifyAddCode = 0x1016;


    }

    interface IdString {
        String AliPayCompany = "浙江先丰号生物科技有限公司";
        String AliPay_APP_ID = "2017082208318924";
        String AliPayPARTNER = "2088721902958131";//支付宝 商户PID
        String AliPaySELLER = "xf1hsc@163.com";//支付宝 商户收款账号

    }
}